<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>主页</title>
    <link rel="stylesheet" type="text/css" href="../../static/layui-master/dist/css/layui.css">
    <script src="../../static/layui-master/dist/layui.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="../../static/layuimini/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="../../static/layuimini/css/public.css" media="all">

    <!-- layer 独立版调试 -->
    <script src1="//cdn.staticfile.org/jquery/1.12.3/jquery.min.js"></script>
    <script src1="../release/layer/src/layer.js"></script>

    <script type="text/javascript" src="../../static/js/personalInformation.js" charset="UTF-8"></script>
    <script type="text/javascript" src="../../static/js/jquery-3.6.0.min.js" charset="UTF-8"></script>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: "/getName",
                type: "get",
                datatype: "text",
                success: function (data) {
                    $("#name").text(data);
                }
            })
        })
    </script>
</head>
<body>

<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">高校排课系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg"
                         class="layui-nav-img">
                    <span id="name"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" class="layui-btn demo" data-type="personalInformation"
                           style="background-color: white;">个人资料</a></dd>
                    <dd><a href="javascript:;" class="layui-btn demo" data-type="updatePassword"
                           style="background-color: white;">修改密码</a></dd>
                    <dd><a href="/logout" class="layui-btn demo" style="background-color: white;">注销</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <!--    <div class="layui-side layui-bg-cyan">-->
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item"><a href="../common/welcome.html" target="workAreaFrame"><i class="fa fa-cog">
                    首页</i></a></li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">排课管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="sortCourse/curriculumPlan.html" target="workAreaFrame">课程计划</a></dd>
                        <dd><a href="sortCourse/classSchedule.html" target="workAreaFrame">查看课表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">课程信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="curriculum/curriculum.html" target="workAreaFrame">课程信息列表</a></dd>
                        <dd><a href="curriculum/giveInstruction.html" target="workAreaFrame">授课信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">系别信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="department/department.html" target="workAreaFrame">系别信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">专业信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="major/major.html" target="workAreaFrame">专业信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">年级信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="grade/grade.html" target="workAreaFrame">年级信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">班级信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="class/class.html" target="workAreaFrame">班级信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">教师信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="teacher/teacher.html" target="workAreaFrame">教师信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">学生信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="student/student.html" target="workAreaFrame">学生信息列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">教学设施</a>
                    <dl class="layui-nav-child">
                        <dd><a href="facility/build.html" target="workAreaFrame">教学楼管理</a></dd>
                        <dd><a href="facility/classroom.html" target="workAreaFrame">教室列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">教学资料</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">学习文档</a></dd>
                        <dd><a href="javascript:;">教材列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;">帮助中心</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <!--        <div style="padding: 15px;">-->
        <div id="workarea" style="position: absolute; top : 0px; width: 100%; height: 100%;">
            <iframe style="border-width: 0px; width: 100%; height: 100%;" name="workAreaFrame"
                    src="../common/welcome.html"></iframe>
            <!--            </div>-->
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        <!--        <center><p>Copyright © 2021 XMUT</a> Licensed </p></center>-->
        <center><p>版权所有© Copyright 2021-2021　　中国·厦门集美区理工路600号 <a href="https://www.xmut.edu.cn">厦门理工学院</a>&nbsp;&nbsp;&nbsp;版本V1.0.0
        </p></center>
    </div>
</div>


<script>
    //JS
    layui.use(['element', 'layer', 'util'], function () {
        var element = layui.element
            , layer = layui.layer
            , util = layui.util
            , $ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function (othis) {
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            , menuRight: function () {
                layer.open({
                    type: 1
                    , content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    , area: ['260px', '100%']
                    , offset: 'rt' //右上角
                    , anim: 5
                    , shadeClose: true
                });
            }
        });

    });
</script>
</body>
</html>